Beginning Game Programming with Pygame Zero by Stewart Watkiss

Beginning Game Programming with Pygame Zero by Stewart Watkiss

Author:Stewart Watkiss
Language: eng
Format: epub
ISBN: 9781484256503
Publisher: Apress


WIDTH=800

HEIGHT=600

# States are:

# start - timed delay before start

# player1 - waiting for player to set position

# player1fire - player 1 fired

# player2 - player 2 set position

# player2fire - player 2 fired

# game_over_1 / game_over_2 - show who won 1 = player 1 won etc.

game_state = "player1"

# Color constants

SKY_COLOR = (165, 182, 209)

GROUND_COLOR = (9,84,5)

# Different tank colors for player 1 and player 2

# These colors must be unique as well as the GROUND_COLOR

TANK_COLOR_P1 = (216, 216, 153)

TANK_COLOR_P2 = (219, 163, 82)

SHELL_COLOR = (255,255,255)

TEXT_COLOR = (255,255,255)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.